package router

import (
	"fx_swift_agent/internal/controller"
	"fx_swift_agent/pkg/middleware"
)

func IndexRouter() {
	indexApiVer := miniApiVer.Group("index", middleware.CheckAuth(), middleware.AgentFreezeStatus())
	{
		indexApiVer.GET("one", controller.IndexOne)
		indexApiVer.GET("third", controller.IndexThird)

		indexApiVer.POST("second", controller.IndexSecond)
		indexApiVer.POST("four", controller.IndexFour)
	}
}
